<!DOCTYPE html>
<html>
  <head>
    <title>通过JavaScript来创建EasyUI布局</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     <!-- 引入JQuery -->
      <script type="text/javascript" src="jquery-easyui-1.6.6/jquery.min.js"></script>
      <!-- 引入EasyUI -->
      <script type="text/javascript" src="jquery-easyui-1.6.6/jquery.easyui.min.js"></script>
      <!-- 引入EasyUI的中文国际化js，让EasyUI支持中文 -->
      <script type="text/javascript" src="jquery-easyui-1.6.6/locale/easyui-lang-zh_CN.js"></script>
      <!-- 引入EasyUI的样式文件-->
      <link rel="stylesheet" href="jquery-easyui-1.6.6/themes/default/easyui.css" type="text/css"/>
      <!-- 引入EasyUI的图标样式文件-->
      <link rel="stylesheet" href="jquery-easyui-1.6.6/themes/icon.css" type="text/css"/>
      <script type="text/javascript">
          $(function(){
              //画面加载完成之后就调用layout()方法将body变成easy的layout
              $('#easyUILayoutBody').layout();   
          });
      </script>
  </head>
  <!--给body指定class属性指定easy的easyui-layout样式，这样就可以 使用body创建easyui的layout -->
  <body >  
<div id="loginDiv">
	<!--/*@thymesVar id="msg" type="java.lang.String"*/-->
	<span th:text="${msg}"></span>
	<form id="loginform" class="form-vertical" th:action="@{/login}" action="" method="post">
		<div class="control-group normal_text">
			<h1>谷元科技</h1>
		</div>
		<div class="control-group">
			<div class="controls">
				<div class="main_input_box">
					<span class="add-on bg_lg"><i class="icon-user"></i></span><input
						type="text" name="userNameEg" placeholder="Username" />
				</div>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<div class="main_input_box">
					<span class="add-on bg_ly"><i class="icon-lock"></i></span><input
						type="password" name="pwd" placeholder="Password" />
				</div>
			</div>
		</div>
		<div class="form-actions">
			<span class="pull-left"><a href="#"
				class="flip-link btn btn-info" id="to-recover">Lost password?</a></span> <span
				class="pull-right"><a type="submit"
				href="javascript:$('#loginform').submit();" class="btn btn-success">Login</a></span>
		</div>
	</form>
</div>
  </body>  
</html>